#include "stdEmenyLib.h"

stdEmenyLib* stdEmenyLib::_instance = 0;

stdEmenyLib* stdEmenyLib::Instance()
{
	if (_instance == NULL)
	{
		_instance = new stdEmenyLib();
	}
	return _instance;
}

stdEmenyLib::stdEmenyLib()
{
	string str, str1, str2;
	ifstream infile;
	infile.open("gameinformation/enemyInformation/list.txt");
	while (getline(infile, str))
	{
		getline(infile, str1);
		getline(infile, str2);
		_std.push_back(stdEmeny(str, str1, str2));
	}
}

stdEmeny stdEmenyLib::getEmeny(int i)
{
	return _std[i];
}